{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">专题管理</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a href="{php echo web_url('rush/category/specialedit')}" class="btn btn-primary">新建专题</a>
		</div>
		<div class="filter-list">
			<form action="./cityagent.php" method="get">
				<input type="hidden" name="p" value="rush" />
				<input type="hidden" name="ac" value="category" />
				<input type="hidden" name="do" value="specialindex" />
				<div class="form-group">
					<label class="col-sm-2 control-label">关键字</label>
                    <div class="col-md-4">
                        <input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}"  placeholder="根据专题标题关键字进行搜索"/>
                    </div>
				</div>
			 	<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary" type="submit">筛选</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover  table-bordered">
				<thead class="navbar-inner">
				<tr>
					<th style="width: 40px;">ID</th>
					<th style="width: 200px;">专题标题(点击编辑)</th>
					<th style="width: 120px">操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr>
					<td>{$item['id']}</td>
					<td>
						<a href='javascript:;' data-toggle='ajaxEdit' data-href="{php echo web_url('rush/category/sptitleedit',array('id'=>$item['id']))}">
							{$item['title']}
						</a>
					</td>
					<td style="position: relative;">
						<a class="btn btn-sm btn-info" href="{php echo web_url('rush/category/specialedit',array('id' => $item['id']))}">编辑</a>
						<a class="btn btn-sm btn-primary js-clip" href='javascript:;' data-url="{php echo h5_url('pages/subPages/special/rushspeci/rushspeci',['id'=>$item['id']])}">复制链接</a>
						{if p('wxapp')}
						<a href="javascript:;" data-url="pages/subPages/special/rushspeci/rushspeci?id={$item['id']}" class="js-clip btn btn-sm btn-primary">
							小程序路径
						</a>
						{/if}
						<a class="btn btn-sm btn-danger" data-toggle="ajaxRemove" href="{php echo web_url('rush/category/specialdelete', array('id'=>$item['id']))}" data-confirm="确定要删除该专题吗？">删除</a>
					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}